import {makeAutoObservable} from "mobx"
import { getClasssPlanTreelist, selectStationLabel } from "@/services/index"
import {  } from "@/utils/interface"

class addDefence {
    constructor(){
        makeAutoObservable(this)
    }   
    //仓库中定义的属性
    getClasssPlanTree = []
    getSelectStationLabel = []

    //定义仓库中的方法
    async getClasssPlanTreelist(){
        //getClasssPlanTree
        let result = await getClasssPlanTreelist();
        console.log(result);
        
        if(result.data){
            this.getClasssPlanTree = result.data
        }
        let res = await selectStationLabel();
        console.log(res);
        if(res.data){
            this.getSelectStationLabel = res.data
        }
    }
}
export default new addDefence